#include <stdio.h>


int main(int argc, char**argv)
{
    //打开文件
    FILE*fp = fopen(argv[1], "a+");
    if(fp == NULL)
    {
        perror("fopen error:");
        return -1;
    }

    int a,b,c;

    //int re = scanf("%da%da%da", &a, &b, &c);
    //int re = fscanf(fp,"%da%da%da", &a, &b, &c);
    char*s = "aasdf234";
    int re = sscanf(s,"%da%da%da", &a, &b, &c);
    printf("a = %d, b = %d, c = %d\n", a, b, c);
    printf("re = %d\n", re);

}